package com.wn.pojo;

import java.util.Date;

/**
 * 预约表实体类
 */
public class Appointment {//
    private Integer id;
    //预约人的id
    private Integer patientId;
    //医生id
    private Integer doctorUserId;
    //预约科室的id
    private Integer departmentId;
    //预约时间
    private String time;
    //预约状态
    private Integer status;

    private Integer isDeleted;

    public Appointment(Integer id, Integer patientId, Integer doctorUserId, Integer departmentId, String time, Integer status, Integer isDeleted) {
        this.id = id;
        this.patientId = patientId;
        this.doctorUserId = doctorUserId;
        this.departmentId = departmentId;
        this.time = time;
        this.status = status;
        this.isDeleted = isDeleted;
    }

    public Appointment() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public Integer getDoctorUserId() {
        return doctorUserId;
    }

    public void setDoctorUserId(Integer doctorUserId) {
        this.doctorUserId = doctorUserId;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "Appointment{" +
                "id=" + id +
                ", patientId=" + patientId +
                ", doctorUserId=" + doctorUserId +
                ", departmentId=" + departmentId +
                ", time='" + time + '\'' +
                ", status=" + status +
                ", isDeleted=" + isDeleted +
                '}';
    }
}